TweenFilterLite ˵ĵ
Tags: ˵, 
TweenFilterLite ̳ TweenLite ˹ϵ䣬ṩɫͼһЩķ Flash еľһЩ˽֮ȽϵĵӦ֣еǽ Flash ɫ;ϵһṩ˸Ϊ򵥵Ӧ÷ˣ һҲο
/*
汾: 7.14
: 6/10/2008
ACTIONSCRIPT 汾: 3.0 (վṩ AS2 ))
¼ϸĵ: http://www.TweenFilterLite.com (ӵ AS3 )
ķ룺ߡAS Ӣ Richard )  http://dzxz.blog.5d.cn
:
TweenFilterLite ̳ԳģԼ3kǿ TweenLite ࣬˾ģ⡢Ӱб˾ȵȣͼЧԱȶȡɫȡͶȡҶԼֵԼ6k
TweenFilterLite ﷨ṹ TweenLite ͬ㻹Ϥ TweenLite ƼȰҳһ¡ҲƼ㿴һǰ TweenLite ʹ⣬ TweenLite ļ----ע
ṩһּķͬһʱĳĶԽл MovieClip λá͸ȡɫȡ
 TweenLite һTweenFilterLite ָӳٻûָʱ֮ʼ----עԼڻʼʱκκͬʱԴЩ ԶĶͬһĿеĻӶͻ飬ȵȡʹһܴĺôǳŬСļĳߴ磨 Liteĺ⣩滹һЩĻ棬Ǹҵľ飬ٱļҪ3ϣҪȷļߴǲ ɽܵģ banner 棩ͬһδֹ档õ﷨Ƿǳ򵥵ģ಻ڸӵԭչֶΣͨһЩ ⡣TweenFilterLite ǳļ򵥡ݡңɣǳӯ
㻹ѰҸĹܣȥ www.TweenMax.com һ TweenFilterLite Ĵ TweenMax 
:
1) $ target : Object - Ŀ󣬶Խл
2) $ duration : Number - ʱλ룩
3) $ vars : Object - ͵ĲöеҪԣбǻʱĿֵʹ TweenFilterLite.from() бǻʼʱĳʼֵ е˾ͨݵ(ԵƱ׼ȷ磺blurFilter, glowFilter, colorMatrixFilter, ȵ)˾԰˾صԣ blurX, blurY, contrast, color, distance, colorize, brightness, highlightAlpha, ȵȡ 
    ר: 
     delay : Number - ӳٿʼ (Ϊλ).
     ease : Function - . 磬fl.motion.easing.Elastic.easeOut Ĭϵ Regular.easeOut
     easeParams : Array - ʽҪĶݡʹ Elastic ʽϣһЩĲŴϵͻʱ䡣ĻʽǲҪģˣ㲻ҪĻʽݲ   
     autoAlpha : Number -  alpha ԣԻһЩӵЧ統 alpha ֵ 0ʱ visible ԸΪ falseʼǰautoAlpha  0ʱ visible Ա true 
     volume : Number -  MovieClip  SoundChannel е volume ԣСлԱʾǻʱֵʹõ TweenLite.from()ԽʾĿʼʱ)
     tint : Number - ı DisplayObject ɫɫһ16ɫֵΪʱĿɫֵʹõ TweenLite.from()ֵʾĿʼʱɫ)磬ɫֵ趨Ϊ 0xFF0000ҪƳɫֻҪһ null ֵ tint ԡ( TweenLite ʹõ removeTint ----ע)  
     frame : Number -  MovieClip ָ֡Ƶ
     onStart : Function - ڻʼʱҪִĳͽãͨǺŵǴӳٵģһǳá
     onStartParams : Array - ΪʼʱҪִеĺݲ(ѡ)
     onUpdate : Function - Уÿθֵʱִָĺ(ʼÿһ֡һ)
     onUpdateParams : Array -  onUpdate ָĺݲ (ѡ)
     onComplete : Function - ʱִеĺ 
     onCompleteParams : Array -  onComplete ָĺݲ (ѡ)
     renderOnStart : Boolean - ʹôӳٻ TweenFilterLite.from() ϣֹȾrendering ЧֱʼֵΪ true.Ĭ¸ֵΪ false ȾЧִУӳδ֮ǰ
     overwrite : Boolean -   ϣǰĻЧԶǵӰͬһԵĻȷֵΪ false
     blurFilter : Object - Ӧģ˾ҪһУһԵĶΪblurXģȣ, blurYģȣ, qualityƷ,ĬֵΪ2
     glowFilter : Object - Ӧ÷˾ҪһУһԵĶΪalphaͨȣblurX , blurY , colorɫstrengthǿȣ, quality innerڲ෢⣩knockoutڿգ
     colorMatrixFilter : Object -Ӧɫ˾ҪһУһԵĶΪcolorizeɫamountcontrastԱ ȣbrightnessȣsaturationͶȣhueɫࣩthresholdֵrelativeԣ matrixɫ
     dropShadowFilter : Object - ӦӰ˾ҪһУһԵĶΪalpha, angleǶȣ, blurX, blurY, color, distance룩, strength, quality
     bevelFilter : Object - Ӧб˾ҪһУһԵĶΪangle, blurX, blurY, distance, highlightAlpha͸ȣ, highlightColorɫshadowAlphaӰ͸ȣ, shadowColorӰɫ, strengthǿȣ, quality

: 
һʾ clip_mc ģȴӵǰֵ1.5ģ20£  

  import gs.TweenFilterLite;
  TweenFilterLite.to(clip_mc, 1.5, {blurFilter:{blurX:20, blurY:20}});

Ĵʾӣ 2 ӵʱı MovieClip ɫȻ 1 ֽģڶӳ----ע
  import gs.TweenFilterLite;
  TweenFilterLite.to(clip_mc, 2, {colorMatrixFilter:{colorize:0xFF0000, amount:1}});
  TweenFilterLite.to(clip_mc, 1, {blurFilter:{blurX:20, blurY:20}, delay:2, overwrite:false});
  
߼Ӧãϣ 5 ֵʱｫӰƬ clip_mc ıͶȽ 0 Ƴ 2 ʱáonFinishTweenΪһЩֵ 5  clip_mc )£
  
  import gs.TweenFilterLite;
  import fl.motion.easing.Back;
  TweenFilterLite.to(clip_mc, 5, {colorMatrixFilter:{saturation:0}, delay:2, onComplete:onFinishTween, onCompleteParams:[5, clip_mc]});
  function onFinishTween(argument1:Number, argument2:MovieClip):void {
   trace("The tween has finished! argument1 = " + argument1 + ", and argument2 = " + argument2);
  }

̨ϵӰƬѾ߱Ļʱֵϣĳɫİ汾 ɫ0xFF0000ǰ״̬ʹĴ룺
  
  import gs.TweenFilterLite;
  TweenFilterLite.from(clip_mc, 5, {type:"color", colorize:0xFF0000});  

ע:
-  (ĸ TweenLite )  Flash ļܹ 6kb 
- Ҫ Flash 9 ֮İ汾( ֧ ActionScript 3.0 Ĳ )
- ˾˵Quality ƷʣĬֵΪ "2" ͨݲıһá
-  Flash ѾԴͼ˾ ColorMatrixFilterùҪʹõTweenFilterLite ṩ˾ֱ̬ӽеãڿ ColorMatrixFilter ʹõľˣֱʹüɣػκζ磬ͨĴıɫ
   var myNewMatrix:Array = TweenFilterLite.colorize(myOldMatrix, 0xFF0000, 1);
- رл Mario Klingemann л ColorMatrix ĹͼЧķǳá 
